<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/search.css">
    <title>商品搜索</title>
</head>

<body>
    <div class="lt_container">
        <div class="lt_header">
            <a href="javascript:history.go(-1);" class="ico-left"><i class="mui-icon mui-icon-back"></i></a>
            <h3>商品搜索</h3>
            <!-- <a href="javascript:;" class="ico-right"><i class="fa fa-search"></i></a> -->
        </div>


        <div class="lt_main">

            
            <!-- 区域滑动 -->
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">

                    <!-- 搜索 -->
                    <div class="lt-search">
                        <input type="search" name="" id="" class="search-txt" placeholder="请输入搜索关键字">
                        <button class="mui-btn mui-btn-primary search_btn">搜索</button>
                    </div>
                    <!-- 搜索记录 -->
                    <div class="lt-searchRecord">
                        <!-- <div class="title">
                            <span class="mui-pull-left">搜索历史</span>
                            <span class="mui-pull-right btn_empty"><i class="fa fa-trash"></i>清空记录</span>
                        </div>
                        <div class="content">
                            <ul>
                                <li><a class="mui-pull-left" href="">sds</a><i class="btn_delete mui-pull-right mui-icon mui-icon-closeempty"></i></li>
                                <li><a class="mui-pull-left" href="">sds</a><i class="btn_delete mui-pull-right mui-icon mui-icon-closeempty"></i></li>
                                <li><a class="mui-pull-left" href="">sds</a><i class="btn_delete mui-pull-right mui-icon mui-icon-closeempty"></i></li>
                            </ul>
                        </div> -->
                    </div>

                </div>
            </div>
        </div>

        <!-- 底部 -->
        <div class="lt_footer">
            <ul class="clearfix">
                <li><a href="index.html"><i class="fa fa-home"></i>
                        <p>首页</p>
                    </a></li>
                <li><a href="javascript:;" class=""><i class="fa fa-bars"></i>
                        <p>分类页</p>
                    </a></li>
                <li><a href="cart.html"><i class="fa fa-shopping-cart"></i>
                        <p>购物车</p>
                    </a></li>
                <li><a href="user.html"><i class="fa fa-user"></i>
                        <p>用户中心</p>
                    </a></li>
            </ul>
        </div>
    </div>


    <script type="text/html" id="tmp">
        {{if list.length == 0}}
            <p>没有历史数据！</p>
        {{else}}
            <div class="title">
                <span class="mui-pull-left">搜索历史</span>
                <span class="mui-pull-right btn_empty"><i class="fa fa-trash"></i>清空记录</span>
            </div>
            <div class="content">
                <ul>
                    {{each list v i}}
                        <li><a class="mui-pull-left" href="./searchList.html?key={{ v }}">{{ v }}</a><i class="btn_delete mui-pull-right mui-icon mui-icon-closeempty" data-index="{{ i }}"></i></li>
                    {{/each}}
                </ul>
            </div>
        {{/if}}
    </script>

    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>
</body>

</html>